package com.woniuxy.ticket.user.controller;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import java.util.concurrent.TimeUnit;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author user
 * @since 2021-02-23
 */
@RestController
@RequestMapping("/user")
public class Ticket_userController {

//    @Value("${account}")
//    private String account;

//    @RequestMapping("getAccount")
//    public String getAccount(){
//
//        return account;
//    }

    @GetMapping("add")
    public String add()throws InterruptedException{

        Thread.sleep(3000);
        TimeUnit.SECONDS.sleep(3);
        return "user_add2";
    }

}

